package com.pingan.haofang.searchcloud.metadata.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 索引字段查询结果
 *
 * @author baojie371
 * @date 17/5/4
 * @since 1.0.0
 */
@ApiModel(description = "索引字段查询结果")
public class MetadataFieldQueryResult {

    @ApiModelProperty("ID")
    private long id;

    @ApiModelProperty("字段名称")
    private String fieldName;

    @ApiModelProperty("字段类型ID")
    private int fieldTypeId;

    @ApiModelProperty("字段别名")
    private String fieldComment;

    @ApiModelProperty("是否unique")
    private boolean uniqueKey;

    @ApiModelProperty("是否version field")
    private boolean versionKey;

    @ApiModelProperty("是否必填")
    private boolean required;

    @ApiModelProperty("是否可索引")
    private boolean indexed;

    @ApiModelProperty("是否可存储")
    private boolean stored;

    @ApiModelProperty("是否可向量")
    private boolean termVectors;

    @ApiModelProperty("是否可多值")
    private boolean multiValued;

    @ApiModelProperty("默认值")
    private String defaultValue;

    @ApiModelProperty("复制到字段，多个逗号分隔")
    private String copyToField;

    @ApiModelProperty("权重，扩大100倍")
    private long boost;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public int getFieldTypeId() {
        return fieldTypeId;
    }

    public void setFieldTypeId(int fieldTypeId) {
        this.fieldTypeId = fieldTypeId;
    }

    public String getFieldComment() {
        return fieldComment;
    }

    public void setFieldComment(String fieldComment) {
        this.fieldComment = fieldComment;
    }

    public boolean isUniqueKey() {
        return uniqueKey;
    }

    public void setUniqueKey(boolean uniqueKey) {
        this.uniqueKey = uniqueKey;
    }

    public boolean isRequired() {
        return required;
    }

    public void setRequired(boolean required) {
        this.required = required;
    }

    public boolean isIndexed() {
        return indexed;
    }

    public void setIndexed(boolean indexed) {
        this.indexed = indexed;
    }

    public boolean isVersionKey() {
        return versionKey;
    }

    public void setVersionKey(boolean versionKey) {
        this.versionKey = versionKey;
    }

    public boolean isStored() {
        return stored;
    }

    public void setStored(boolean stored) {
        this.stored = stored;
    }

    public boolean isTermVectors() {
        return termVectors;
    }

    public void setTermVectors(boolean termVectors) {
        this.termVectors = termVectors;
    }

    public boolean isMultiValued() {
        return multiValued;
    }

    public void setMultiValued(boolean multiValued) {
        this.multiValued = multiValued;
    }

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    public String getCopyToField() {
        return copyToField;
    }

    public void setCopyToField(String copyToField) {
        this.copyToField = copyToField;
    }

    public long getBoost() {
        return boost;
    }

    public void setBoost(long boost) {
        this.boost = boost;
    }
}
